import { lazy } from "react";

export default [
    {
        path: "/home",
        component: lazy(() => import("../pages/Home"))
    },
    {
        path: "/user",
        component: lazy(() => import("../pages/user"))
    },
    // 动态路由的写法
    {
        path: '/list/:id',
        component: lazy(() => import("../pages/list"))
        // path: '/list'
    },


    {
        path: '',  //  错误路由匹配 功能达不到 效果
        component: lazy(() => import("../pages/404"))
    }
]